/*
    SUSAN® - Sole of Unix Save ANything

   
      Copyright (C) 2011-2016 Skyatlas Co. LTD

   

   
*/

#include "stored_globals.h"

namespace storagedaemon {

ConfigurationParser* my_config = nullptr;

StorageResource* me;
char* configfile;

bool init_done = false;
uint32_t vol_session_time;

static std::mutex mutex_;
static uint32_t vol_session_id_ = 0;

uint32_t NewVolSessionId()
{
  uint32_t id;

  mutex_.lock();
  vol_session_id_++;
  id = vol_session_id_;
  mutex_.unlock();
  return id;
}

} /* namespace storagedaemon */
